package com.dudu.service.impl;


import com.dudu.dao.RoomMapper;
import com.dudu.dao.RoomtypeMapper;
import com.dudu.domain.Room;
import com.dudu.domain.Roomtype;
import com.dudu.service.RoomService;
import com.dudu.service.RoomTypeService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * Created by tengj on 2017/4/7.
 */
@Service
public class RoomServiceImpl implements RoomService {

    @Autowired
    RoomMapper roomMapper;

	@Override
	public List<Room> getAllRoom() {
		// TODO Auto-generated method stub
		return this.roomMapper.getAllroom();
	}

	@Override
	public int deletRoom(Room room) {
		// TODO Auto-generated method stub
		return roomMapper.deletRoom(room);
	}

	@Override
	public int addRoom(Room room) {
		// TODO Auto-generated method stub
		return roomMapper.addRoom(room);
	}

	@Override
	public int updateRoom(Room room) {
		// TODO Auto-generated method stub
		return roomMapper.updateRoom(room);
	}

	@Override
	public Room selectRoomById(Integer id) {
		// TODO Auto-generated method stub
		return roomMapper.selectRoomById(id);
	}

	

}
